package com.czd.support.model;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Author: Jerry.hu
 * Create: Jerry.hu (2014/9/24 23:24)
 * Description: //
 * To change this template use File | Settings | File Templates.
 */
@Alias("manager")
public class Manager implements Serializable {
	private static final long serialVersionUID = 6441521508577490300L;
	private int userCode;
	private String userName;
	private String password;
	private int status;
	private Date createTime;
	private int createUser;
	private Date updateTime;
	private int updateUser;

	public int getUserCode() {
		return userCode;
	}

	public void setUserCode(int userCode) {
		this.userCode = userCode;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getCreateUser() {
		return createUser;
	}

	public void setCreateUser(int createUser) {
		this.createUser = createUser;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public int getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(int updateUser) {
		this.updateUser = updateUser;
	}

	public String getStatusStr(){
		if(status == 0){
			return "正常";
		}else{
			return "无效";
		}
	}
	@Override
	public String toString() {
		return "Manager{" +
				"userCode=" + userCode +
				", userName='" + userName + '\'' +
				", password='" + password + '\'' +
				", status=" + status +
				", createTime=" + createTime +
				", createUser=" + createUser +
				", updateTime=" + updateTime +
				", updateUser=" + updateUser +
				'}';
	}
}
